package mission;

import java.awt.Point;
import java.io.Serializable;
import java.util.ArrayList;

public class MissionStep implements Serializable{

	public MissionStep(Point location, MissionType type) {
		super();
		this.location = location;
		this.type = type;
		next = new ArrayList<MissionStep>();
	}
	
	public MissionStep(Point location, MissionType type, ArrayList<MissionStep> next) {
		super();
		this.location = location;
		this.type = type;
		this.next = next;
	}
	
	public void addNextStep(MissionStep next){
		this.next.add(next);
	}
	
	
	public Point getLocation() {
		return location;
	}

	public ArrayList<MissionStep> getNext() {
		return next;
	}

	public MissionType getType() {
		return type;
	}


	private Point location;
	private ArrayList<MissionStep> next;
	private MissionType type; //can be subClass
	public enum MissionType{COMBAT, GO, TALK};
	private static final long serialVersionUID = 4304539685806070906L;
}
